# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=ncdu
pkgver=1.15.1
pkgrel=0
pkgdesc="Text-based disk usage viewer"
url="https://dev.yorhel.nl/ncdu"
options="!check" # no test suite
arch="all"
license="MIT"
makedepends="ncurses-dev"
subpackages="$pkgname-doc"
source="http://dev.yorhel.nl/download/ncdu-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="572379264b9bd0d782151bd2f79add0e7a6d092029a041ff8f9288e928a4b6a6733467bca7c1702cbb44c3861279da1bc3d4278df6fba1814fe1dc909f2d8087  ncdu-1.15.1.tar.gz"
